<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>训练入口</title>
    <script type="application/javascript" th:src="@{/webjars/jquery/3.3.1/jquery.js}"></script>
    <script type="application/javascript" th:src="@{/webjars/bootstrap/3.1.1/js/bootstrap.js}"></script>
</head>
        <script>
            $(function () {
                $("#startTrain").click(function () {
                    var userId = $('input[id=userId]').val();
                    if (userId.length == 0) {
                        alert("请输入你的编号！");
                    } else {
                        location = "/ED_threshold_training/train/login/"+userId;
                    }
                });
            });
        </script>
<body>
<div style="width: 500px;height:200px;margin: 200px auto;font-size: 24px;">
    输入你的编号：<input type="text" id="userId" placeholder="number..." width="50px" height="30px"/>
    <button id="startTrain">进行训练</button>
</div>
</body>
</html>